package chen.yi.component.mysql.check;

import java.util.Set;
import java.util.regex.Pattern;

/**
 * 基础校验规则定义
 * @author huat
 **/
class BaseCheckUtils {
    // 正则校验
     static final Pattern NAME_PATTERN =
            Pattern.compile("^[a-zA-Z_][a-zA-Z0-9_]{0,63}$");

    // MySQL保留字集合（部分示例）
     static final Set<String> RESERVED_WORDS = Set.of(
            "SELECT", "CREATE", "INSERT", "DROP", "ALTER", "TABLE");
    //备注校验正则
     static final Pattern COMMENT_PATTERN =
            Pattern.compile("^[\\u4e00-\\u9fa5a-zA-Z0-9 \\p{Punct}]{1,1024}$");


}
